package day04;
import  java.util.Scanner;
//命令解析程序
import java.util.Scanner;

public class CommandBySwitch {
    public static void main(String[] args) {
        Scanner command=new Scanner(System.in);
        System.out.println("请选择功能：1.存款 2.取款 3.转账 4.退出");
        int a=command.nextInt();
        switch (a){
            case 1:
                System.out.println("存款业务");
                break;
            case 2:
                System.out.println("取款业务");
                break;
            case 3:
                System.out.println("转账业务");
                break;
            case 4:
                System.out.println("退出");
                break;
            default:
                System.out.println("错误");
        }
        if (a==1){
            System.out.println("存款业务");
        }else if (a==2){
            System.out.println("取款业务");
        }else if (a==3){
            System.out.println("转账业务");
        }else if (a==4){
            System.out.println("退出");
        }else {
            System.out.println("错误");
        }



    }
}
